<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    const array = [1, 2, 3, 4, 5, 6];
    const sum = array.filter(num => num % 2 === 0).reduce((acc, num) => acc + Math.sqrt(num), 0);
    console.log(sum);
</script>
</body>
</html>